<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>数据清洗v3.0</title>
    <style type="text/css" media="screen">
        input {
            margin:10px 0 0 10px;
            background:blueviolet;
            color:#fff;
            width:150px;
            height:30px;
            font:14px Verdana, Arial, Helvetica, sans-serif;
            }
        #logout {
            margin:10px 0 0 10px;
            background:blueviolet;
            color:#ffc0cb;
            width:150px;
            height:30px;
            font:14px Verdana, Arial, Helvetica, sans-serif;
            }
    </style>
</head>
<body>

    {% if contactInfo %}
        <div>
            <table border="1">
                <tr><th>自定义分割符</th><th>QQ</th><th>邮箱</th><th>地址</th><th>手机</th><th>电话</th><th>网址</th><th>微信</th></tr>
                {% for item in contactInfo %}
                    <tr><td>{{item.Id}}</td><td>{{item.qq}}</td><td>{{item.email}}</td><td>{{item.address}}</td><td>{{item.mobilphone}}</td><td>{{item.telphone}}</td><td>{{item.url}}</td><td>{{item.weichat}}</td></tr>
                {% endfor %}
            </table>
        </div>

        <a href="downloadCustomFenkuaiFile?filenameMd5={{ filenameMd5 }}">下载步骤1-1分块文件</a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="downloadMiddleStep1_2?filenameMd5={{ filenameMd5 }}">下载步骤1-2临时文件</a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="downloadMiddleStep1_3?filenameMd5={{ filenameMd5 }}">下载步骤1-3临时文件</a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="downloadMiddleStep1_4?filenameMd5={{ filenameMd5 }}">下载步骤1-4临时文件</a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="downloadMiddleStep1_5?filenameMd5={{ filenameMd5 }}">下载步骤1-5临时文件</a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="downloadCustomFenPianFile?filenameMd5={{ filenameMd5 }}">下载第二阶段分单元文件</a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{#        <a href="downloadDetailInfo?filenameMd5={{ filenameMd5 }}">下载联系方式详细内容</a>#}

        <input type="button" onclick='popupfunc()' value="下载联系方式详细内容" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{#        <a href="showbutton?filenameMd5={{ filenameMd5 }}">弹框测试</a>#}


        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        {% if error %}
            <a href="downloadErrorFile?filenameMd5={{ filenameMd5 }}">下载错误信息</a>
        {% endif %}
    {% endif %}
    <br/>
    <div>
        <button type="button" id="companyName" onclick="javascrtpt:window.location.href='companyNameHandler?filenameMd5={{ filenameMd5}}'">企业名称</button>
    </div>
    <br>
    <br>
    <br>
    <br>
    <input type="button" value="返回首页"
onclick="javascrtpt:window.location.href='returnHandler'">
&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" value="退出" id="logout"
onclick="javascrtpt:window.location.href='logout'">
{% include "share/footer.html" %}



<script>
    function popupfunc() {
       var url = location.search;
       var tmp=url.indexOf("?");
       var str = url.substr(tmp+1);
       var strs = str.split("=");
       var param=strs[1]
       alert('提示：\n退出登录后数据会自动被删除，系统不保留任何数据');
       window.location.href='downloadDetailInfo?filenameMd5='+param;
       //window.location.href='index';
    }
</script>
</body>
</html>